package com.zxp.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * 这里注意下, 一定要实现Serializable接口~, 不然消费者调用返回json时候会序列化失败
 **/
@Data @ToString
@NoArgsConstructor @AllArgsConstructor
public class User implements Serializable {

    private Integer id;
    private String username;
    private String password;
    private String tel;
    private String address;

    public User(Integer id, String username) {
        this.id = id;
        this.username = username;
    }
}
